
const install = (vm) => {
	return {
		pageArticle:(params = {}) => vm.$u.post('/api-blog/app/article/pageArticle', params),
		getArticle:(id) => vm.$u.get('/api-blog/app/article/getArticleById/'+id),
		addArticleReadNum:(id) => vm.$u.post('/api-blog/app/article/addArticleReadNum/'+id),
		addArticle:(article) => vm.$u.post('/api-blog/app/article/add',article)
	}
}

export default install